from django.contrib import admin
from .models.login import UserInformationModel, GroupModel



# Register your models here.


class UserInformationAdmin(admin.ModelAdmin):
    list_display_links = ['user', ]
    search_fields = ['user__username']
    list_display = ['user', 'available']
    list_editable = ['available']
    list_filter = ['available']


class GroupAdmin(admin.ModelAdmin):
    list_display_links = ['name', 'owner']
    search_fields = ['owner__username']
    list_display = ['name', 'owner']


admin.site.register(UserInformationModel, UserInformationAdmin)
admin.site.register(GroupModel,GroupAdmin)

admin.site.site_header = '团队提醒-后台管理'
